package gp;

import java.util.HashMap;



/**
 * @author Beacom
 * @version 1.0
 * @created 18-Feb-2008 12:43:25 PM
 */
public class DataEntry {

	private HashMap<String,Double> data;

	public DataEntry() {
		data = new HashMap<String,Double>();
	}

	public void finalize() throws Throwable {

	}

	public double getOutput(){
		return data.get("output");
	}

	/**
	 * 
	 * @param variableName
	 */
	public double getVariable(String variableName){
		return data.get(variableName);
	}

	/**
	 * 
	 * @param value
	 */
	public void setOutput(double value){
		data.put("output", value);
	}

	/**
	 * 
	 * @param value
	 * @param variableName
	 */
	public void setVariable(double value, String variableName){
		data.put(variableName, value);
	}

}